Skip to content

fix: align continuity_context output schema - #32

Merged
dajiaohuang merged 1 commit into
mainfrom
fix/31-continuity-output-schema
Aug 31, 2026
Merged

fix: align continuity_context output schema#32
dajiaohuang merged 1 commit into
mainfrom
fix/31-continuity-output-schema

Conversation

@dajiaohuang

Copy link
Copy Markdown
Contributor

Problem

The public structured-output schema classified constraints as an array even though bounded continuity contexts return an object. Standards-compliant modern MCP clients therefore rejected successful calls, and actor-memory-specific output fields were left unspecified.

Solution

  • describe ordinary, actor-memory, and bounded continuity response fields in one Draft 2020-12 schema
  • make constraints and delegation contracts exact and bounded
  • keep actor memory aligned with the published v1 context contract
  • reject undeclared top-level continuity output fields
  • exercise all three response shapes through a real MCP 2026-07-28 client

Verification

  • uv run --package sagasmith-coc-mcp pytest packages/mcp/tests/test_collection_pagination_contract.py packages/mcp/tests/test_tool_contract_quality.py (16 passed)
  • uv run --package sagasmith-coc-mcp pytest packages/mcp/tests (90 passed)
  • uv run ruff check packages/mcp/src packages/mcp/tests

Closes #31

@dajiaohuang
dajiaohuang merged commit a51746a into main Aug 31, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align continuity_context constraints output schema

1 participant